import request from '@/utils/request'

// 查询邀请信息列表
export function listYqrecord(query) {
  return request({
    url: '/business/yqrecord/list',
    method: 'get',
    params: query
  })
}

// 查询邀请信息详细
export function getYqrecord(id) {
  return request({
    url: '/business/yqrecord/' + id,
    method: 'get'
  })
}

// 新增邀请信息
export function addYqrecord(data) {
  return request({
    url: '/business/yqrecord',
    method: 'post',
    data: data
  })
}

// 修改邀请信息
export function updateYqrecord(data) {
  return request({
    url: '/business/yqrecord',
    method: 'put',
    data: data
  })
}

// 删除邀请信息
export function delYqrecord(id) {
  return request({
    url: '/business/yqrecord/' + id,
    method: 'delete'
  })
}
